package com.atguigu.gmallsuger.service;

import com.alibaba.fastjson.JSONObject;
import com.atguigu.gmallsuger.mapper.KeywordStatsMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KeywordServiceImpl implements KeywordService{
    
    @Autowired
    KeywordStatsMapper ksMapper;
    public List<JSONObject> getKewWordStats(@Param("date") int date,
                                            @Param("limit") int limit){
        return ksMapper.getKewWordStats(date, limit);
    }
}
